{% extends "base.html"%}
{% block content%}
      <tr>
	  <td height=13px colspan="8"></td>
      </tr>
      <tr>
      <td></td>
        <td colspan="5">
          <table bgcolor="#d8d8d8" width="750px" cellspaceing="0" cellpadding="0" border="0px" >
          <tr class="tabletop">
	     <td width = "150px">Фото</td>
	     <td width = "50px">Рейтинг</td>
	     <td width = "200">Название</td>
	     <td width = "100">Средний чек</td>
	     <td width = "250">Адрес</td>
          </tr>
          </table>
	 {% for cafe in cafes %}
	   {% if forloop.counter|divisibleby:"2" %}
          <table bgcolor="#ffffff" width="750px" cellspaceing='0px' cellpadding='0px'  border='0px' >
          <tr >
             <td width = "150px"><img src="/files/{{cafe.cafe_logo}}" border="0"></td>
            {% if cafe.cafe_reiting > "0" %}
             <td width = "100px"><span class="gren">{{cafe.cafe_reiting}}</span>&nbsp;&nbsp;<a href="/food/plusr/{{cafe.id}}/" class="gren">+</a>&nbsp;&nbsp;<a href="/food/minusr/{{cafe.id}}/" class="red">-</a></td>
            {% else %}
             <td width = "100px"><span class="red">{{cafe.cafe_reiting}}</span>&nbsp;&nbsp;<a href="/food/plusr/{{cafe.id}}/" class="gren">+</a>&nbsp;&nbsp;<a href="/food/minusr/{{cafe.id}}/" class="red">-</a></td>
            {% endif %}
             <td width = "200px"><a href="/food/shcafe/{{cafe.id}}" class="cname">{{cafe.cafe_name}}</a></td>
             <td width = "100px" class="st_pr">{{cafe.cafe_price}}</td>
             <td width = "200px" class="st_pr">ул. {{cafe.cafe_stret}}, д.{{cafe.cafe_house}}</td>
          </tr>
          </table>
	   {% else %}
          <table bgcolor="#ffddff" width="750px" cellspaceing='0px' cellpadding='0px'  border='0px' >
          <tr>
             <td width = "150px"><img src="/files/{{cafe.cafe_logo}}" border="0"></td>
            {% if cafe.cafe_reiting > "0" %}
             <td width = "100px"><span class="gren">{{cafe.cafe_reiting}}</span>&nbsp;&nbsp;<a href="/food/plusr/{{cafe.id}}/" class="gren">+</a>&nbsp;&nbsp;<a href="/food/minusr/{{cafe.id}}/" class="red">-</a></td>
            {% else %}
             <td width = "100px"><span class="red">{{cafe.cafe_reiting}}</span>&nbsp;&nbsp;<a href="/food/plusr/{{cafe.id}}/" class="gren">+</a>&nbsp;&nbsp;<a href="/food/minusr/{{cafe.id}}/" class="red">-</a></td>
            {% endif %}
             <td width = "200px"><a href="/food/shcafe/{{cafe.id}}" class="cname">{{cafe.cafe_name}}</a></td>
             <td width = "100px" class="st_pr">{{cafe.cafe_price}}</td>
             <td width = "200px" class="st_pr">ул. {{cafe.cafe_stret}}, д.{{cafe.cafe_house}}</td>
          </tr>
          </table>
	   {% endif %}
	{% endfor %}
	<br><br>
	</td>
	<td valign="top">{% include "tags.html" %}</td>
	<td ></td>

{% endblock %}

